<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:104:"E:\www\sungmu.net\crm.manage.dev.sungmu.net\public/themes/admin_simpleboot3/admin\api_project\index.html";i:1753497059;s:94:"E:\www\sungmu.net\crm.manage.dev.sungmu.net\public\themes\admin_simpleboot3\public\header.html";i:1753343380;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->


    <link href="/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
    <link href="/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
    <link href="/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        form .input-order {
            margin-bottom: 0px;
            padding: 0 2px;
            width: 42px;
            font-size: 12px;
        }

        form .input-order:focus {
            outline: none;
        }

        .table-actions {
            margin-top: 5px;
            margin-bottom: 5px;
            padding: 0px;
        }

        .table-list {
            margin-bottom: 0px;
        }

        .form-required {
            color: red;
        }
    </style>
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "/",
            WEB_ROOT: "/",
            JS_ROOT: "static/js/",
            APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
        };
    </script>
    <script src="/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="/static/js/wind.js"></script>
    <script src="/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
    <script>
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip({
                container:'body',
                html:true,
            });
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>
    <?php if(APP_DEBUG): ?>
        <style>
            #think_page_trace_open {
                z-index: 9999;
            }
        </style>
    <?php endif; ?>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">列表</a></li>
        <li><a href="<?php echo url('add'); ?>">添加</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="">&nbsp;
        添加时间:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time" value="<?php echo $start_time; ?>" style="width:180px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time" value="<?php echo $end_time; ?>" style="width:180px;" autocomplete="off">
        游玩日期:
        <input type="text" class="form-control js-bootstrap-date" name="play_date" value="<?php echo $play_date; ?>" style="width:120px;" autocomplete="off">
        状态:
        <select class="form-control" name="status" id="status" aria-invalid="false">
            <option value="">--请选择--</option>
            <?php if(is_array($infos['projectStatusArr']) || $infos['projectStatusArr'] instanceof \think\Collection || $infos['projectStatusArr'] instanceof \think\Paginator): if( count($infos['projectStatusArr'])==0 ) : echo "" ;else: foreach($infos['projectStatusArr'] as $k=>$val): ?>
                <option value="<?php echo $k; ?>"  <?php if($status == $k): ?>selected<?php endif; ?> ><?php echo $val; ?></option>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </select>
        关键词：<select class="form-control" name="searchType" id="searchType" aria-invalid="false">
            <option value="" <?php if(empty($searchType) || (($searchType instanceof \think\Collection || $searchType instanceof \think\Paginator ) && $searchType->isEmpty())): ?>selected="selected"<?php endif; ?> >--请选择--</option>
            <option value="d.spot_title" <?php if($searchType == 'd.spot_title'): ?>selected="selected"<?php endif; ?> >景区</option>
            <option value="b.user_login" <?php if($searchType == 'b.user_login'): ?>selected="selected"<?php endif; ?> >账号</option>
            <option value="a.project_title" <?php if($searchType == 'a.project_title'): ?>selected="selected"<?php endif; ?> >名称</option>
        </select>
        <input class="form-control" type="text" name="keyword" style="width:200px;" value="<?php echo $keyword; ?>" placeholder="请输入关键词">
        <input type="submit" class="btn btn-primary" value="搜索" style="margin-left: 10px;">
        <a class="btn btn-danger" href="<?php echo url('index'); ?>">清空</a>
        &nbsp;<span style="color:red;">待审核人数：<?php echo (isset($infos['waitCount']) && ($infos['waitCount'] !== '')?$infos['waitCount']:'0'); ?>人</span>
    </form>
    <form method="post" class="js-ajax-form" action="<?php echo url('sort'); ?>">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="">ID</th>
                <th width="">景区</th>
                <th width="">账号</th>
                <th width="">旅行社</th>
                <th width="">名称</th>
                <th width="">游玩日期</th>
                <th width="">需求总人数</th>
                <th width="">已加入人数</th>
                <th width="">待处理人数</th>
                <th width="">申请时间</th>
                <th width="">更新时间</th>
                <th width="">状态</th>
                <th width="">操作</th>
            </tr>
            </thead>
            <?php if(is_array($infos['list']) || $infos['list'] instanceof \think\Collection || $infos['list'] instanceof \think\Paginator): $i = 0; $__LIST__ = $infos['list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <tr>
                    <td><?php echo $vo['id']; ?></td>
                    <td><?php echo (mb_substr($vo['spot_title'],0,20,'utf-8') ?: '---'); ?></td>
                    <td><?php echo (mb_substr($vo['user_login'],0,20,'utf-8') ?: '---'); ?></td>
                    <td><?php echo (mb_substr($vo['company_title'],0,20,'utf-8') ?: '---'); ?></td>
                    <td><?php echo (mb_substr($vo['project_title'],0,20,'utf-8') ?: '---'); ?></td>
                    <td><?php echo (isset($vo['project_date']) && ($vo['project_date'] !== '')?$vo['project_date']:'---'); ?></td>
                    <td><?php echo (mb_substr($vo['project_total_num'],0,20,'utf-8') ?: '0'); ?></td>
                    <td><?php echo (mb_substr($vo['project_join_num'],0,20,'utf-8') ?: '0'); ?></td>
                    <td><?php echo (mb_substr($vo['project_wait_num'],0,20,'utf-8') ?: '0'); ?></td>
                    <td>
                        <?php if($vo['create_time'] > '0'): ?><?php echo date('Y-m-d H:i:s',$vo['create_time']); endif; ?>
                    </td>
                    <td>
                        <?php if($vo['update_time'] > '0'): ?><?php echo date('Y-m-d H:i:s',$vo['update_time']); endif; ?>
                    </td>
                    <td>
                        <?php echo $infos['projectStatusArr'][$vo['status']]; ?>
                    </td>
                    <td>
                        <a href="<?php echo url('edit',array('uuid'=>$vo['uuid'])); ?>">编辑</a>&nbsp;|&nbsp;
                        <a href="<?php echo url('apiProject/indexa',array('uuid'=>$vo['uuid'])); ?>" class="tips-f">游客</a>
                    </td>
                </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </table>
        <ul class="pagination"><?php echo ($infos['list']->render () ?: ''); ?></ul>
    </form>
</div>
<script src="/static/js/admin.js"></script>
<link href="/static/css/index.css" rel="stylesheet" type="text/css">
</body>
</html>
